#!/usr/bin/ksh

# Script name: break.ksh

typeset -i num=0

while true
do
	print -n "Enter any number (0 to exit): "
	read num junk
	if (( num == 0 ))
	then
		print "Input value is: $num";
		break
	else
		print "Square of $num is $(( num * num )). \n"
	fi
done

print "script has ended."

